import { createSSRApp } from "vue";
import * as Pinia from 'pinia';
import { createUnistorage } from './uni_modules/pinia-plugin-unistorage'
import tmui from "./tmui"
import App from "./App.vue";
// import 'vant/lib/index.css';




export function createApp() {
  const app = createSSRApp(App);
  app.config.warnHandler = () => null
  const store = Pinia.createPinia()
  store.use(createUnistorage())
  app.use(store)
  app.use(tmui,{} as Tmui.tmuiConfig)
  
  return {
    app,
    Pinia,
  };
}


